package com.iscas.tech.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.geekidea.springbootplus.framework.common.entity.BaseEntity;
import io.geekidea.springbootplus.framework.validator.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 项目基础信息模块表
 *
 * @author yangyi
 * @since 2020-10-26
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AtBasemodules对象")
public class AtBasemodules extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "id不能为空", groups = {Update.class})
    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotBlank(message = "模块编号不能为空")
    @ApiModelProperty("模块编号")
    private String mdCode;

    @NotBlank(message = "模块名称不能为空")
    @ApiModelProperty("模块名称")
    private String mdTitle;

    @NotBlank(message = "模块别名描述不能为空")
    private String description;

    @NotNull(message = "查询排序（提供给查询条件时的排序）不能为空")
    @ApiModelProperty("查询排序（提供给查询条件时的排序）")
    private Integer mdSort;

    @NotNull(message = "所属功能（1:科技成果 2:科技需求 3:科技人才库 4:专家库 5:新闻动态 6:公告）不能为空")
    @ApiModelProperty("所属功能（1:科技成果 2:科技需求 3:科技人才库 4:专家库 5:新闻动态 6:公告）")
    private Integer mdType;

    @ApiModelProperty("删除状态（1存在，0刪除）")
    private Integer delstatus;

    @ApiModelProperty("创建人")
    private Integer createtitle;

    @ApiModelProperty("提交交易创建时间")
    private Date createtime;

}
